/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.feiyue.basic.server.net;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import java.text.SimpleDateFormat;
import java.util.Date;

public class OneDayOneTime {
	public static String getCurrentDate() {
		return new SimpleDateFormat("yyyy-MM-dd").format(new Date());
	}

	public static boolean getTodayIsDown(Context paramContext) {
		return paramContext.getSharedPreferences("Setting", 0)
				.getString("date2getconfig", "").equals(getCurrentDate());
	}

	public static void setTodayIsDown(Context paramContext) {
		SharedPreferences.Editor localEditor = paramContext
				.getSharedPreferences("Setting", 0).edit();
		localEditor.putString("date2getconfig", getCurrentDate());
		localEditor.commit();
	}
}